package com.liuqi.openai.core.chat;

import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * openai 响应 message 描述
 *
 * @author liuqi
 * @date 2025/7/18
 **/
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Message {

    /**
     * 角色
     */
    private Role role;

    /**
     * 内容
     */
    private String content;

    /**
     * 工具调用
     *
     * tool_call
     */
    private List<ToolCall> toolCalls;

    /**
     * 当 Role = tool 时：填写 function name
     */
    private String name;

    /**
     * 当 Role = tool 时：填写 tool_call id
     */
    private String toolCallId;

}
